﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.WorkFlow
{
    /// <summary>
    /// 工作流审批表
    /// </summary>
    public class WorkFlowNode: FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 节点ID值
        /// </summary>
        public int WnID { get; set; }
        /// <summary>
        /// 工作流ID
        /// </summary>
        public int WfID { get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        public string WnName { get; set; }
        /// <summary>
        /// 上一节点id
        /// </summary>
        public Nullable<int> PrevNode { get; set; }
        /// <summary>
        /// 下一节点id（逗号分隔出现分支4,5）
        /// </summary>
        public string NextNode { get; set; }
        /// <summary>
        /// 操作者：role:01或者 user:sa
        /// </summary>
        public string Handlers { get; set; }
        /// <summary>
        /// 如为分支节点，具体的条件信息，如:[{f:'days',c:'<',d:'3',n:4},{f:'days',c:'>=',d:'3',n:5}]表示字段days<3走4节点，days>=3走5节点
        /// </summary>
        public string Condition { get; set; }
        /// <summary>
        /// 节点类型(1-开始节点,2-运行节点,3-结束节点)  
        /// </summary>
        public Nullable<int> NodeType { get; set; }
        /// <summary>
        /// 节点功能类型（1-普通节点，2-业务节点，3-转递节点）
        /// </summary>
        public Nullable<int> NodeFuncType { get; set; }
        /// <summary>
        /// 节点状态描述（新增；未批准；未授权等等）
        /// </summary>
        public string NodeStatusDesc { get; set; }
        /// <summary>
        /// 按钮名称
        /// </summary>
        public string BtnText { get; set; }
    }
}
